//
//  SNHStaticTableViewSectionInfo.h
//  Pods
//
//  Created by 陈建蕾 on 2018/6/9.
//

#import "SNHStaticTableViewUserInfo.h"

@class SNHStaticTableViewCellInfo;

NS_ASSUME_NONNULL_BEGIN

@interface SNHStaticTableViewSectionInfo : SNHStaticTableViewUserInfo
@property (nonatomic, assign) CGFloat footerHeight;
@property (nonatomic, assign) CGFloat headerHeight;

/** 默认section 没有header footer */
+ (instancetype)defaultSectionInfo;

/** 带title的header section */
+ (instancetype)headerSectionInfoWithTitle:(NSString *)title;

/** 带view的header section */
+ (instancetype)headerSectionWithView:(UIView *)view;

/** 带title的footer section */
+ (instancetype)footerSectionWithTitle:(NSString *)title;

/** 带view的footer section */
+ (instancetype)footerSectionWithView:(UIView *)view;

/** 带title的 footer和footer */
+ (instancetype)sectionInfoWithHeader:(NSString *)headerTitle footer:(NSString *)footerTitle;

/** 添加cell */
- (void)addCellInfo:(SNHStaticTableViewCellInfo *)cell;

/** 插入cell */
- (void)insertCellInfo:(SNHStaticTableViewCellInfo *)cell atIndex:(NSInteger)index;

/** 删除cell */
- (void)removeCellAtIndex:(NSInteger)index;

/** 获取cell */
- (SNHStaticTableViewCellInfo *)getCellInfoAtIndex:(NSInteger)index;

/** cell 数量 */
- (NSInteger)rowCount;

@end

NS_ASSUME_NONNULL_END
